// SiteTable.h: interface for the SiteTable class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SITETABLE_H__1DFC2B95_1792_44B2_836B_E8CD52B98DD3__INCLUDED_)
#define AFX_SITETABLE_H__1DFC2B95_1792_44B2_836B_E8CD52B98DD3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "MultiRecordsDatabaseElement.h"
#include "SiteTableRecord.h"

namespace PDMS
{
	namespace PDMSDBIF
	{
		class DllExport SiteTable : public DatabaseTableTemplate<SiteTableRecord>  
		{
			DECLARE_REGISTER_MAP( SiteTable );
		public:
			SiteTable();
			virtual ~SiteTable();
			
			void SetID( unsigned long lID );
			void SetParentID( unsigned long lParentID );
			void SetDescription( const StdString& strDescription );
			void SetPurpose( const StdString& strPurpose );
			void SetFunction( const StdString& strFunction );
			void SetNumber( int iNumber );
			void SetArea( int iArea );
			void SetModule( const StdString& strModule );
			void SetRlstored( const StdString& strRlstored );
			
		public:
			unsigned long GetID();
			unsigned long GetParentID();
			const StdString GetDescription();
			const StdString GetPurpose();
			const StdString GetFunction();
			int GetNumber();
			int GetArea();
			const StdString GetModule();
			const StdString GetRlstored();
			
		private:
			
		protected:
			virtual StdString GetOpenSQL( const StdString& strCondition );
			virtual StdString GetTableName();
			virtual void SetData( RecordPtr_ ptr );
		};
	}
}
#endif // !defined(AFX_SITETABLE_H__1DFC2B95_1792_44B2_836B_E8CD52B98DD3__INCLUDED_)
